package Donnees;

import java.util.ArrayList;
import java.util.List;

public class Catalogue
{
	private static BilletterieStub stub = new BilletterieStub();
	private static Catalogue instance;
	private List<SpectacleBean> spectacles = new ArrayList<SpectacleBean>();
	
	private Catalogue()	{}
	
	public static Catalogue getInstance(){
		if (instance == null) {
			instance = new Catalogue();
		}
		return instance;
	}

	public List<SpectacleBean> getSpectacles()
	{
		return spectacles;
	}
	
	public void addSpectacle(SpectacleBean spectacle)
	{
		spectacles.add(spectacle);
	}
}
